from rest_framework import serializers

from user.models import Article


class ArticlePostSerializer(serializers.ModelSerializer):

    class Meta:
        model = Article
        fields = ('cateid', 'userid', 'title', 'content')
